home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 February
/
EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso
/
progs
/
editor
/
frexxed
/
fpl
/
iconandkill.fpl
< prev
next >
Wrap
Text File
|
1996-02-27
|
556b
|
31 lines
export int IconifyAndKill_hook(int bufferid)
{
int ret = 0;
int firstid = GetBufferID();
int id = firstid;
int numbufs = 0;
if (!bufferid)
{
bufferid = GetBufferID();
}
do
{
if(ReadInfo("type") & 1)
numbufs+=ReadInfo("shared");
id = NextBuffer(id);
if (id == firstid)
{
id = 0;
}
} while (id);
if(numbufs == 1)
{
Clean("ReturnStatus(GetReturnMsg(Iconify()));");
}
}
Hook("Kill", "IconifyAndKill_hook"); /* Patch Kill() with IconifyAndKill_hook()! */